import http from '@zt/zongheng-pro/framework/http'
/**
* 分页
* @param {Object} params
*/
export function leaveTypeList (data) {
    return http.post('leaveType/list', data)
}

/**
* 删除
* @param {Object} data
*/
export function leaveTypeDel (data) {
    return http.post('leaveType/delete', data)
}

/**
* 新增或修改
* @param {Object} data
*/
export function leaveTypeSaveOrUpdate (data) {
    const url = data.id ? 'leaveType/update' : 'leaveType/save'
    return http.post(url, data)
}

/**
* 获取详情
* @param {Long} id
* @returns
*/
export function leaveTypeGetById (id) {
    return http.get('leaveType/getById/' + id)
}


